package com.yogee.topseller.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.yogee.topseller.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 项目名称：TopSeller
 * 类描述：
 * 创建时间：2017/7/7 0007 10:28
 * 创建人：wangye
 * 修改备注：
 */

public class ViewCalenderAdapter extends RecyclerView.Adapter<ViewCalenderAdapter.MyViewHolder> {
    private Context context;

    public ViewCalenderAdapter(Context context) {
        this.context = context;
    }

    @Override
    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_view_pay_calendar, parent, false);
        return new MyViewHolder(view);
    }

    @Override
    public void onBindViewHolder(MyViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 7;
    }

    public class MyViewHolder extends RecyclerView.ViewHolder {
        @BindView(R.id.item_view_calender_date)
        TextView itemViewCalenderDate;
        @BindView(R.id.item_view_calender_number)
        TextView itemViewCalenderNumber;
        public MyViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
